﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BCGC.BLL.BusinessObject.Poll;
using Jalal.Library.DataStructure;
using System.Web;
using Jalal.Library.Web;

namespace BCGC.BLL.Helper
{
    public class ExtendedSessionManager : SessionManager
    {
        public static List<string> RegistrationInformation
        {
            get 
            { 
                List<string> information = (List<string>)System.Web.HttpContext.Current.Session[Registration_Information]; 
                System.Web.HttpContext.Current.Session[Registration_Information] = null;
                return information;
            }
            set { System.Web.HttpContext.Current.Session[Registration_Information] = value; }
        }

        public static RegistrationStep CurrentRegistrationStep
        {
            get
            {
                RegistrationStep step = (RegistrationStep)System.Web.HttpContext.Current.Session[Registration_Step];
                System.Web.HttpContext.Current.Session[Registration_Step] = null;
                return step;
            }
            set { System.Web.HttpContext.Current.Session[Registration_Step] = value; }
        }

        private const string Registration_Information = "Registration_Information";
        private const string Registration_Step = "Registration_Step";
    }
}
